package org.example.demo1.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.demo1.common.PageData;
import org.example.demo1.common.PageQuery;
import org.example.demo1.common.ResponseData;
import org.example.demo1.domain.UserInfo;

@Mapper
public interface UserMapper {

    UserInfo getUserByName(String userName);

    UserInfo getUserByPhone(String phone);

    int insertUser(UserInfo userInfo);

    void updateUser(UserInfo userInfo);

    int deleteUser(String userName);

    ResponseData<PageData<UserInfo>> page(PageQuery pageQuery);
}
